package cn.petplatform.petback.service.sysmessage;

import cn.petplatform.dto.ResponseDto;
import cn.petplatform.petback.pojo.SysMessage;
import cn.petplatform.petback.pojo.vo.SystemMessageVo;

import javax.servlet.http.HttpServletRequest;

/**
 * @author LNL
 * @date 2021/5/14 22:43
 */
public interface SysMessageService {
    /**
     * 获取所有的系统消息
     * @return
     */
    ResponseDto getAllSystemMessages();

    /**
     * 修改系统消息
     * @param sysMessage
     * @return
     */
    ResponseDto updateSystemMessage(SysMessage sysMessage, HttpServletRequest request);

    /**
     * 新增系统消息
     * @param sysMessage
     * @param request
     * @return
     */
    ResponseDto insertSystemMessage(SysMessage sysMessage, HttpServletRequest request);

    /**
     * 删除系统消息
     * @param id
     * @return
     */
    ResponseDto deleteSystemMessage(String id);

    ResponseDto getSystemMessagesById(String id);

    ResponseDto getPublishIsPassAsZero();

}
